<?php $this->pageTitle='Demanda de empleo - Buscador TrabajoProject'; ?>

<h1>Demanda de empleo</h1>

<?php echo $this->renderPartial('_notice'); ?>

<?php echo CHtml::form(array('tShirtRequest/browse'), 'get', array()); ?>
<p>
  Oficio <?php echo CHtml::textField('profession', $profession); ?>
  Zona <?php echo CHtml::textField('zone', $zone); ?>
  <?php echo Chtml::submitButton('Buscar'); ?>
</p>
<?php echo CHtml::endForm(); ?>

<div class="pager"><?php $this->widget('CLinkPager',array('pages'=>$pages)); ?></div>

<?php foreach($models as $n=>$model): ?>
<table class="dataGrid">
  <tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('name')); ?>
</th>
    <td align="left" style="font-size:1.3em; font-weight:bold;"><?php echo CHtml::encode($model->name); ?>
</td>
</tr>
<tr>
  <th class="label" width="100">Busco trabajo de
</th>
    <td align="left" style="font-size:16px; font-weight: bold;"><?php echo CHtml::link(CHtml::encode($model->profession), array('oficio/'.$model->professionToSlug.'/'.$model->zoneToSlug.'/'.$model->id.'/'.($pages->getCurrentPage()+1)), array('class'=>'tbv')); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('zone')); ?>
</th>
    <td align="left"><?php echo CHtml::encode($model->zone); ?>
</td>
</tr>
</table>
<br />
<?php endforeach; ?>

<div class="pager"><?php $this->widget('CLinkPager',array('pages'=>$pages)); ?></div>